<html>
    <head>
        <script type="text/javascript" src="<?php dirname(__FILE__) ?>/parcial/js/jquery.js"></script>
        <script type="text/javascript" src="<?php dirname(__FILE__) ?>/parcial/js/jquery-validate/jquery.validate.js"></script>
        <script type="text/javascript" src="<?php dirname(__FILE__) ?>/parcial/js/jquery-ui-1.8.5.custom.min.js"></script>
        <script type="text/javascript" src="<?php dirname(__FILE__) ?>/parcial/js/jquery.dataTables.js"></script>
        <script type="text/javascript" src="<?php dirname(__FILE__) ?>/parcial/js/ColReorder.js"></script>
        <script type="text/javascript" src="<?php dirname(__FILE__) ?>/parcial/js/scripts.js"></script>

        <link rel="stylesheet" type="text/css" media="screen" href="<?php dirname(__FILE__) ?>/parcial/css/estilo.css" />
            <link rel="stylesheet" type="text/css" media="screen" href="<?php dirname(__FILE__) ?>/parcial/css/start/jquery-ui-1.8.5.custom.css" />	
        <link rel="stylesheet" type="text/css" media="screen" href="<?php dirname(__FILE__) ?>/parcial/css/styles.css"  type="text/css" />
        <link rel="stylesheet" type="text/css" media="screen" href="<?php dirname(__FILE__) ?>/parcial/css/demo_table_jui.css"  type="text/css" />
        <link rel="stylesheet" type="text/css" media="screen" href="<?php dirname(__FILE__) ?>/parcial/css/smoothness/jquery-ui-1.8.4.custom.css"  type="text/css" />
        <link rel="stylesheet" type="text/css" media="screen" href="<?php dirname(__FILE__) ?>/parcial/css/ColReorder.css"  type="text/css" />
    </head>
    <?php
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    session_start();
    if (isset($_SESSION['usuario'])) {
        ?>
        <body>
            <div id="main">
                <div id="header">
                    <?php include ("vista/Header.php"); ?>
                </div>

                <div id="content">
                    <div id="right">
                        <div id="mensaje"><?php  echo $_GET['mensaje'] ?><?php  echo $_POST['mensaje'] ?></div>
                        <div id="mensaje-error"><?php  echo $_GET['mensaje-error'] ?><?php  echo $_POST['mensaje'] ?></div>
                        <div id="contenido"></div>
                    </div>
                    <!-- End demo -->
                </div>
            </div>
        </body>
    </html>

    <?php
} else {
    ?>
    <body>
        <h2>!No tiene permisos para acceder aqui!</h2>
    </body>
    </html>
    <?php
}
?>